import java.util.Scanner;
public class EachBitOfAnInteger {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("输入一个整数");
        int num= sc.nextInt();
        do {
            int j=0;
            j=(num%10);
            System.out.println(j);
            num=(num/10);
        }while((num%10)!=0);

    }
}
